<%--@elvariable id="type" type="java.lang"--%>
<%--@elvariable id="judge" type="java.lang"--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge"/>
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8"/>
    <%@include file="../../includes/common.jsp" %>
</head>
<body>
</body>
</html>
<script type="text/javascript">
    $(function () {
        if ("${type}" == "新增") {
            if (${judge}) {
                top.bootbox.alert("上传成功！");
                top.quit();
            } else {
                top.bootbox.alert("上传失败，请检查课件是否标准！");
            }
        } else {
            if (${judge}) {
                top.bootbox.alert("修改成功！");
                top.quit();
            } else {
                top.bootbox.alert("修改失败，请检查图片是否标准！");
            }
        }
    })
</script>